<?php

namespace App\ModelFilters;


class CzHookSpecFilter extends BaseFilter
{
    /**
    * Related Models that have ModelFilters as well as the method on the ModelFilter
    * As [relationMethod => [input_key1, input_key2]].
    *
    * @var array
    */
    public $relations = [
    ];


    public function spec_id($value){
        return $this->where('spec_id', $value);
    }

    public function condit($value){
        return $this->where('condit', $value);
    }
    public function status($value){
        return $this->where('status', $value);
    }

    public function act($value){
        return $this->where('act', $value);
    }

    public function product_id($value){
        return $this->related('spec', 'product_id', '=', $value);
    }
    public function channel_id($value){
        return $this->related('channels', 'channel_id', '=', $value);
    }

}
